/*
 * Copyright © 2019-2020  Whale Cloud, Inc. All Rights Reserved.
 *
 * Notice: Whale Cloud Inc copyrights this specification.
 * No part of this specification may be reproduced in any form or means,
 * without the prior written consent of Whale Cloud Inc.
 *
 */
package com.wteam.modules.system.domain.dto;

import lombok.Data;
import java.io.Serializable;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;

/**
 * 学生 DTO类.
 *
 * @author herry_wong
 * @since 2020-12-28
 */
@Data
public class StudentDTO implements Serializable {

    /** 和user主键同值 */
    @ApiModelProperty("和user主键同值")
    /** 防止精度丢失 */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long uid;

    /** 学分 */
    @ApiModelProperty("学分")
    private Double credit;

    /** 年级 */
    @ApiModelProperty("年级")
    private Integer grade;

    private UserDTO userDTO;

    private String msg;
}